<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class FillBookTypeData extends AbstractMigration
{
    public function change()
    {
        $rows = [
            [
                'id' => 3,
                'name' => '帮助文档',
                'number' => 3,
                'icon' => 'wendang1',
                'description' =>'Teamones 使用帮助及常见问题处理'
            ], [
                'name' => '文件记录',
                'number' => 4,
                'description' => '',
                'icon' => 'record',
                'type' => 3
            ]
        ];

        // 写入数据库
        $this->table('book_type')->insert($rows)->save();
    }
}
